#ifndef SPRING_DIALOG_H
#define SPRING_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "defines/global.h"

class SpringDialog : public QDialog{
    Q_OBJECT

    public:
        SpringDialog(SpringTreeItem *, QWidget * = 0);
        ~SpringDialog();

    signals:
        void done();

    private:
        Spring *spring;
        SpringTreeItem *item;

        int colorR, colorG, colorB, colorAlpha;
		double ks, kd;

		QPushButton *colorPushButton;

        void createLayout();

        void setButtonColor();

    private slots:
        void acceptChange();
        void changeColor();
        void changeKs(double);
        void changeKd(double);
};

#endif

